package com;

public class 练习1 {
    public static void printArr(int[]arr){
        int max = arr[0];
        for (int i = 0; i <arr.length ; i++) {
            if(arr[i]>max){
                max=arr[i];
            }else {
                max=max;
        }
        }
        System.out.println(max);
    }
   public static void main(String[] args) {
       int arr[] = {11, 22, 333, 44, 55};
       printArr(arr);

   }
}
